package com.ruoyi.file.service;

import com.ruoyi.file.utils.FileUploadUtils;
import com.ruoyi.file.utils.OssFileUploadUtils;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
@Service
public class OssFileServiceImpl implements IOssFileServie{
    /**
     * 本地文件上传接口
     *
     * @param file 上传的文件
     * @return 访问地址
     * @throws Exception
     */
    @Override
    public String uploadFile(MultipartFile file) throws Exception
    {
        String name = OssFileUploadUtils.uploadMultipartFile(file);
//        String url = domain + localFilePrefix + name;
        return name;
    }
}
